using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition25-敌方士兵的数量有没有大于等于个数", menuName = "Skill/Condition/Condition25-敌方士兵的数量有没有大于等于个数", order = 25)]
public class Condition25 : ConditionBase
{
    public int count;
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        return ChessManager.GetInstance().chessList.Count(currentChess => currentChess.GetChessSide() != pair.Chess.GetChessSide() && currentChess.chessDate.chessType == ChessType.Soldier)>= count;
    }
}